package main

import (
	_ "goProject/cfg"
	_ "goProject/db"
	"goProject/page"
	"log"
	"net/http"
)

func main() {
	http.HandleFunc("/", page.Index)
	http.HandleFunc("/ping", page.Ping)
	log.Println("网址：http://127.0.0.1:8000")
	err := http.ListenAndServe(":8000", nil)
	if err != nil {
		panic(err)
	}
}
